package de.tablebasics.applikation;

import java.awt.ScrollPane;

import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;

import de.tablebasics.jtable.MyTable;
import de.tablebasics.model.MyTableModel;

public class ApplikationRun {
public static void main(String[] args) {
	MyTable tableFrame = new MyTable();
	JPanel panel = new JPanel();
	DefaultTableModel model = new DefaultTableModel();
	
	JTable table = new JTable(model);
	ScrollPane srollPane = new ScrollPane();
	srollPane.add(table);
	model.addColumn("Key");
	model.addColumn("Value");
	model.addRow(new Object[]{"Hallo","Value"});
	panel.add(srollPane);

	tableFrame.add(panel);
}
}
